package com.huzz.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.springframework.security.core.GrantedAuthority;

/**
 * 描述
 *
 * @author Huzz
 * @create 2022-08-18 11:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
public class SysRole  implements GrantedAuthority {

    private Integer id;
    private String name;
    private String desc;

    @JsonIgnore
    @Override
    public String getAuthority() {
        return name;
    }
}
